#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"

void test01()
{
	ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);

	printf("size:%d\n", STSize(&st));

	//STPop(&st);
	while (!STEmpty(&st))
	{

		STDataType top = STTop(&st);
		printf("%d ", top);
		STPop(&st);
	}
	printf("\n");

	STDesTroy(&st);
}

int main()
{
	test01();
	return 0;
}